home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Magazine / YAM / Source / includes / inline / socket.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-04  |  1.2 KB  |  47 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _INLINE_SOCKET_H
  4. #define _INLINE_SOCKET_H
  5.  
  6. #ifndef __INLINE_MACROS_H
  7. #include <inline/macros.h>
  8. #endif /* !__INLINE_MACROS_H */
  9.  
  10. #ifndef SOCKET_BASE_NAME
  11. #define SOCKET_BASE_NAME SocketBase
  12. #endif /* !SOCKET_BASE_NAME */
  13.  
  14. #define CloseSocket(d) \
  15.     LP1(0x78, long, CloseSocket, long, d, d0, \
  16.     , SOCKET_BASE_NAME)
  17.  
  18. #define Connect(s, n, nl) \
  19.     LP3(0x36, long, Connect, long, s, d0, const struct sockaddr *, n, a0, long, nl, d1, \
  20.     , SOCKET_BASE_NAME)
  21.  
  22. #define GetHostByName(n) \
  23.     LP1(0xd2, struct hostent *, GetHostByName, const unsigned char *, n, a0, \
  24.     , SOCKET_BASE_NAME)
  25.  
  26. #define Recv(s, b, l, f) \
  27.     LP4(0x4e, long, Recv, long, s, d0, unsigned char *, b, a0, long, l, d1, long, f, d2, \
  28.     , SOCKET_BASE_NAME)
  29.  
  30. #define Send(s, m, l, f) \
  31.     LP4(0x42, long, Send, long, s, d0, const unsigned char *, m, a0, long, l, d1, long, f, d2, \
  32.     , SOCKET_BASE_NAME)
  33.  
  34. #define Shutdown(s, h) \
  35.     LP2(0x54, long, Shutdown, long, s, d0, long, h, d1, \
  36.     , SOCKET_BASE_NAME)
  37.  
  38. #define Socket(d, t, p) \
  39.     LP3(0x1e, long, Socket, long, d, d0, long, t, d1, long, p, d2, \
  40.     , SOCKET_BASE_NAME)
  41.  
  42. #define Errno() \
  43.     LP0(0xa2, /* V4 */LONG, Errno, \
  44.     , SOCKET_BASE_NAME)
  45.  
  46. #endif /* !_INLINE_SOCKET_H */
  47.